package de.shortys.myhome.api.view.event.listener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import de.shortys.myhome.api.controller.AbstractModule;

public class ModuleCloseListener extends MouseAdapter {

	private AbstractModule module;

	public ModuleCloseListener(AbstractModule module) {
		this.module = module;
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		module.deactivate();
	}

}
